package gui;

import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;
import database.Database;


public final class ShutMaintenance implements WindowListener {
	
	private final int SHUT_TIME = 3500;
	
	public void windowClosing(WindowEvent e) {
		Database.addMaintenanceCost(SHUT_TIME);
		System.exit(0);
	}

	public void windowActivated(WindowEvent e) {}
	public void windowDeactivated(WindowEvent e) {}
	public void windowDeiconified(WindowEvent e) {}
	public void windowIconified(WindowEvent e) {}
	public void windowOpened(WindowEvent e) {}
	public void windowClosed(WindowEvent e) {}

}
